import java.io.*; 
import java.util.*; 

public class Save {
	public void loadSave(File loadPath) {
		try {
				Scanner loadScanner = new Scanner(loadPath);
				
				while(loadScanner.hasNext()) {
					for(int y=0;y<Screen.room.block.length;y++) {
						for(int x=0;x<Screen.room.block[0].length;x++) {
							Screen.room.block[y][x].groundId = loadScanner.nextInt();
							
						}
					}
					
					for(int y=0;y<Screen.room.block.length;y++) {
						for(int x=0;x<Screen.room.block[0].length;x++) {
							Screen.room.block[y][x].airId = loadScanner.nextInt();
						}
					}
					// System.out.println("loop");
				}
				loadScanner.close();
		} catch (Exception e) {			
			System.out.println("problem");
		}
	}
}
